package com.sales.service.data.transaction.notifier;

import java.io.IOException;
import java.io.InputStream;

import org.json.JSONException;

/**
 * this is a interface used as a notifier to notify the class to which
 * the response has to be sent.
 * 
 * @author Sega
 *
 */
public interface ResponseListeners {

	/**
	 * Method to get the response and to get the entity content.
	 * 
	 * @param response - entity
	 * @throws JSONException
	 * @throws IOException
	 */
	public void executeResponse(InputStream response) throws JSONException, IOException;

}